/*
 * @Author: taoyuqing
 * @Date: 2023-03-27 08:17:24
 * @Description: 
 */
import 'package:flutter/material.dart';
import 'package:spree/widgets/common_container.dart';

class MessageDetail extends StatefulWidget {
  final String msgTitle;
  final String msgContent;
  MessageDetail({Key? key, required this.msgTitle, required this.msgContent})
      : super(key: key);

  @override
  State<MessageDetail> createState() => _MessageDetailState();
}

class _MessageDetailState extends State<MessageDetail> {
  @override
  Widget build(BuildContext context) {
    final args = ModalRoute.of(context)!.settings.arguments;
    return Scaffold(
      appBar: AppBar(
        title: Text('Detail'),
      ),
      body: CommonContainer(
        child: ListView(
          children: [
            Padding(
              padding: EdgeInsets.only(top: 20),
              child: Text(
                '${widget.msgTitle}',
                style: TextStyle(
                    color: Colors.white,
                    fontSize: 22,
                    fontWeight: FontWeight.w800),
              ),
            ),
            Padding(
              padding: EdgeInsets.only(top: 10),
              child: Text('${widget.msgContent}',
                  style: TextStyle(
                      color: Colors.white, fontWeight: FontWeight.w800)),
            )
          ],
        ),
      ),
    );
  }
}
